home *** CD-ROM | disk | FTP | other *** search
Wrap
XSetup plugin | 2002-12-06 | 4.0 KB | 125 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0" "TYPE"="9" "COUNT"="1" "UIPATH"="Internet\Internet Explorer\Appearance" "NAME"="Appearance Options" "LANGUAGE"="VBScript" "VERSION"="2.10" "TEXT 1"="huah!" "DESCRIPTION 1"="Some appearance settings of Internet Explorer you might consider changing." "DESCRIPTION 2"="NOTE #1: Hidding the "Options" menu will also disable the "Internet" applet inside Control Panel!" "DESCRIPTION 3"="NOTE #2: Disabling the "Set as Wallpaper" option will also disable the Wallpaper change through Control Panel -> Display -> Wallpaper!" "AUTHOR"="Xteq Systems" "CONTACTURL"="http://www.xteq.com/" "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved" "COMMENT 1"="Thanks to Sebastien Maurice for some of this settings!" "COMMENT 2"="Thanks to Ian Moran [ian@allwebsales.be] for the idea" dim rgVals() dim rgDesc() ReDim rgVals(9) ReDim rgDesc(9) 'All DW rgDesc(0)="Show ""File"" -> ""Open"" command" rgVals(0)="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoFileOpen" rgDesc(1)="Show ""File"" -> ""New"" command" rgVals(1)="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoFileNew" rgDesc(2)="Show ""File"" -> ""Save""/""Save as"" command" rgVals(2)="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserSaveAs" rgDesc(3)="Show ""Tools"" -> ""Options"" command" rgVals(3)="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserOptions" rgDesc(4)="Show ""Edit"" -> ""Find"" command" rgVals(4)="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoFindFiles" rgDesc(5)="Enable ""Favorites"" menu" rgVals(5)="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoFavorites" rgDesc(6)="Enable right-click HTML menu" rgVals(6)="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserContextMenu" rgDesc(7)="Enable ""Theater Mode""/""Kiosk Mode"" (F11)" rgVals(7)="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoTheaterMode" rgDesc(8)="Enable ""Set as Wallpaper..."" menu on HTML menu" rgVals(8)="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoChangingWallpaper" rgDesc(9)="Show ""File"" -> ""Save"" -> ""Web page (complete)"" command" rgVals(9)="HKCU\Software\Policies\Microsoft\Internet Explorer\Infodelivery\Restrictions\NoBrowserSaveWebComplete" sSpec1t="Enable ""Favorites"" IntelliMenu (hide unsused items)" sSpec1p="HKCU\Software\Microsoft\Internet Explorer\Main\FavIntelliMenus" 'yes/no 'Called when the Plugin is started SUB Plugin_Initialize for l=lbound(rgDesc) to ubound(rgDesc) Call ReadSetting(l+1,rgVals(l),rgDesc(l)) next '-----------SPECIAL------------------------ Call SetUIElement(ubound(rgDesc)+2,sSpec1t) s=RegReadValue(sSpec1p) if ucase(s)="YES" then Call SetUIElementEx(ubound(rgDesc)+2,true) END SUB 'Called when the Plugin should validate the Data the user has entered SUB Plugin_CheckData(ElementIndex) END SUB 'Called when the Plugin should apply the changes SUB Plugin_Apply(ElementIndex,ElementSubIndex) for l=lbound(rgDesc) to ubound(rgDesc) Call WriteSetting(l+1,rgVals(l)) next '-----------SPECIAL------------------------ if GetUIElementEx(ubound(rgDesc)+2)=true then Call RegWriteValue(sSpec1p,"yes",1) else Call RegWriteValue(sSpec1p,"no",1) end if END SUB 'Called when the Plugin is about to be removed from memory SUB Plugin_Terminate END SUB Sub WriteSetting(ITM,VAL) b=GetUIElementEx(ITM) if b=false then Call RegWriteValue(VAL,1,2) Call Restart() else If RegValueExists(VAL) then Call RegDeleteValue(VAL) Call Restart() end if end if end sub 'ITM = Number, VAL = RegVal Path, TXT = Text for UI Sub ReadSetting(ITM,VAL,TXT) Call SetUIElement(ITM,TXT) i=RegReadValue(VAL) if IsEmpty(i) then Call SetUIElementEx(ITM,true) else if i<>1 then Call SetUIElementEx(ITM,true) end if end if end sub